package com.gms.dao.impl;

import org.springframework.orm.hibernate3.BaseDaoImpl;

import com.gms.dao.ItemDao;
import com.gms.domain.Item;
import com.gms.domain.UserInfo;

public class ItemDaoImpl extends BaseDaoImpl<Item> implements ItemDao {

	@Override
	public Item findItemById(Integer itemId) {
		
		return this.findById(itemId);
	}

	@Override
	public void deleteItem(Integer itemId) {
		String hql = "delete Item where itemId = ?";
		this.executeByHql(hql, itemId);
	}

}
